negotiator.analysis
Class BidSpaceCache

java.lang.Object
  extended by negotiator.analysis.BidSpaceCache

public class BidSpaceCache
extends java.lang.Object

Caches the BidSpace such that we don't have to recompute it each time. Only one BidSpace can be stored at a time to limit the memory costs.

Author:
Mark Hendrikx

Constructor Summary
BidSpaceCache()
           
 
Method Summary
static BidSpace getBidSpace(UtilitySpace... spaces)
          Method used to load a BidSpace.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BidSpaceCache

public BidSpaceCache()
Method Detail

getBidSpace

public static BidSpace getBidSpace(UtilitySpace... spaces)
Method used to load a BidSpace. If the BidSpace is already cached, then the cached BidSpace is used. Otherwise, the BidSpace is constructed.

Parameters:
spaces - from which a BidSpace must be constructed.
Returns:
BidSpace belonging to the given UtilitySpace's.